<template>
    <div>
        <p>用户名：<input type="text" v-model="username"></p>
        <p>密码：<input type="text" v-model="password"></p>
        <p>手机号：<input type="text" v-model="phone"></p>
        <p><input type="button" value="提交" @click="tijiao()"></p>
    </div>
</template>

<script>
import axios from 'axios'
export default {
    naem:"semuser",
    data(){
        return{
            username:"",
            password:"",
            phone:"",
        }
    },
    methods:{
        tijiao(){
            var form_data = new FormData()
            form_data.append("usernmae",this.username)
            form_data.append("password",this.password)
            form_data.append("phone",this.phone)
            form_data.append("uid",sessionStorage.getItem("uid"))
            axios({
                url:"http://127.0.0.1:8000/mds/binduser/",
                method:"post",
                data:form_data
            }).then(res=>{
                console.log(res.data);
                
            })
        }
    }

}
</script>

<style>

</style>
